package cn.may.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * @author May
 * @date 2020/10/29 16:12
 * @desc
 */
@Data
public class ConverterData {
    @ExcelProperty("编号")
    private int id;
    @ColumnWidth(10)
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("年龄")
    private Integer age;
    @ExcelProperty("性别")
    private String sex;
    @ExcelProperty("生日")
    @ColumnWidth(15)
    @DateTimeFormat("yyyy/MM/dd")
    private Date date;
    @ExcelProperty("存款")
    private double money;
}
